﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DanhMuc.ascx.cs" Inherits="usercontrol_DanhMuc" %>
<style type="text/css">
    .style2
    {
        width: 32px;
        text-align: left;
        height: 15px;
    }
    .style3
    {
        text-align: left;
        height: 15px;
    }
</style>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:COMPUTERConnectionString %>" 
    SelectCommand="SELECT * FROM [DM_SanPham]"></asp:SqlDataSource>
<asp:DataList ID="DataList1" runat="server" BackColor="White" 
    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="0" 
    DataKeyField="MaDM" DataSourceID="SqlDataSource1" GridLines="Both" 
    Height="30px" Width="200px">
    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
    <ItemStyle BackColor="White" ForeColor="#003399" />
    <ItemTemplate>
        <table style="width:198px; height:15px; text-decoration:none;">
            <tr>
                <td style="width:30px; text-align:center;">
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/Images/chon1.jpg" %>' />
                </td>
                <td class="style3" height="15px;" style="text-decoration: none; width:168px; text-align:left;">
                    <asp:HyperLink ID="HyperLink1" CssClass="style3" runat="server" Font-Bold="True" 
                        Font-Names="Arial" ForeColor="Blue" 
                        NavigateUrl='<%# "~/SanPhamTheoLoai.aspx?MaDM=" + Eval("MaDM") %>' 
                        Text='<%# Eval("TenDM") %>'></asp:HyperLink>
                </td>
            </tr>
        </table>
<br />
    </ItemTemplate>
    <SelectedItemStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
</asp:DataList>


